package com.spark.mapper;

import com.spark.pojo.Diary;
import java.util.List;
import java.util.Map;

import com.spark.pojo.RelationTagDiary;
import org.apache.ibatis.annotations.Param;

public interface DiaryMapper {

    public void saveText(@Param("diary") Diary diary) ;

    public void saveRelationTagDiary(@Param("RelationTagDiary") RelationTagDiary relationTagDiary) ;

    Diary selectByPrimaryKey(String id);

    Diary selectByPrimaryKeyWithTags(String id);

    List<Diary> selectAllWithTagsByUserId(String userId);

    List<Diary> selectByCondition(@Param("diary") Diary diary, @Param("year") Integer year, @Param("month") Integer month, @Param("day") Integer day);

    Diary selectDiaryInfoByDiaryId(String diaryID);
}